//
//  UserModel.h
//  EverydayNews
//
//  Created by 李沛池 on 2017/7/22.
//  Copyright © 2017年 Godlike. All rights reserved.
//

#import "LPCBaseModel.h"
#import "LPCDefine.h"
#import <UMSocialCore/UMSocialCore.h>

@interface UserModel : LPCBaseModel

singleton_interface(UserModel);

/** 登录用户ID */
@property (nonatomic, copy) NSString *userID;
/** 用户头像URL */
@property (nonatomic, copy) NSString *userIcon;
/** 用户昵称 */
@property (nonatomic, copy) NSString *userNickName;

//登录状态
@property (nonatomic, assign) BOOL isLogin;

//返回是否已登录
+ (BOOL)isLogin;

//保存用户信息
+ (void)saveUserData:(UMSocialUserInfoResponse *)resp;
//清理用户信息
+ (void)clearUserData;

@end
